// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// import VueResource from 'vue-resource'
import Axios from 'axios'
import VueRouter from 'vue-router'
import Routes from  './routes'
import App from './App'

import '@/assets/css/base.css'  /*重置css*/
import '@/assets/css/common.less'  /*引入公共样式*/

Vue.config.productionTip = false;
// Vue.use(VueResource);
Vue.use(VueRouter);

Axios.defaults.baseURL = 'https://wd2291425721vzpohb.wilddogio.com';

// 自定义过滤器
Vue.filter('upperCase', function (value) {
  return value.toUpperCase()
});

Vue.filter('snippet', function (value) {
  return value.slice(0,100) + '...'
});

// 路由
const router = new VueRouter({
  routes: Routes,
  mode: 'history'
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: router,
  components: { App },
  template: '<App/>'
});
